#include <bits/stdc++.h>

using namespace std;

const int MAXN = 1e5 + 10, INF = 1e5;
int hx[MAXN];

int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr); cout.tie(nullptr);
    int n;
    cin >> n;
    for (int i = 1; i <= n; ++i)
    {
        int x;
        cin >> x;
        hx[x]++;
    }
    int rest = 0;
    for (int i = 1; i <= INF; ++i)
        if (hx[i])
        {
            rest = max(0, rest - hx[i]);
            rest += hx[i];
        }
    cout << rest << endl;
    return 0;
}
/*16 min*/
/*
8
1 1 1 2 2 3 4 4

3
*/
